From 086f5a34d5042e27146a10d60880ec9241380c84 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 17 Jun 2005 13:17:09 +0000 Subject: [PATCH] Fix length argument to memmove so we don't mangle the dest string. --- gpsbabel/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/util.c b/gpsbabel/util.c index 4ce40cf4f..e22b83d1a 100644 --- a/gpsbabel/util.c +++ b/gpsbabel/util.c @@ -895,7 +895,7 @@ char * str_utf8_to_ascii( const char * str ) cur += bytes - 1; } else { *cur = (char)value; - memmove(cur+1, cur+bytes, bytes+1); + memmove(cur+1, cur+bytes, strlen(cur+bytes)); } } cur++; -- 2.30.2